﻿using Admin2024.Domain.Entity.System;
using Admin2024.Domain.ObjValue;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Admin2024.Domain.IDomainService.System.IRoleService
{
    public interface IRoleProfileService
    {
        //获取指定角色
        Task<DomainResult<AppRole>> GetRoleById(Guid roleId);

        //获取所有角色分页
        Task<DomainResult<List<AppRole>>> GetRolesWithPagination(int page, int pageSize);

        //修改角色信息 
        Task<DomainResult<AppRole>> UpdateRoleInfo(Guid roleId,AppRole appRole);
        //新增角色
        Task<DomainResult<AppRole>> CreateRole(string roleName,string Description);
        
        //删除角色
        Task<DomainResult<AppRole>> RemoveRole(Guid roleId);
    }
}
